package com.ssy.lingxi.after.sale.model.constant;

import com.ssy.lingxi.common.language.LanguageHolder;

/**
 * 售后类型枚举
 * @author 伍将
 * @date 2020/9/1
 * @version 2.0.0
 */
public enum AfterSaleTypeEnum {

    REPLACE(1, "换货"),
    RETURN(2, "退货"),
    REPAIR(3, "维修");

    private final Integer code;
    private final String message;

    AfterSaleTypeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return LanguageHolder.getName(this.getDeclaringClass(), this.getCode());
    }
}
